package com.bstek.demo;

import com.bstek.frame.model.ApiResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description TODO
 * @Author hans
 * @CreateDate 2022-4-10
 */

@Controller
@RequestMapping("rest/test")
public class TestController {

    @ResponseBody
    @RequestMapping(value = "/getUserInfo")
    public ApiResult<?> getUserInfo(String token) {
        return ApiResult.success("呵呵:"+token);
    }
}
